package com.xu.tools.model;

import com.xu.tools.annotation.Desensitization;
import com.xu.tools.enums.SensitiveEnum;

/**
 * @author xuguan
 * @date 2023/3/12
 * @desc 用户类
 */
public class User {
    @Desensitization(type = SensitiveEnum.NAME)
    private String name;
    @Desensitization(type = SensitiveEnum.PASSWORD)
    private String passWord;
    @Desensitization(type = SensitiveEnum.PHONE)
    private String phone;
    @Desensitization(type = SensitiveEnum.ID_NO)
    private String idNo;
    @Desensitization(type = SensitiveEnum.ACCOUNT_NO)
    private String accountNo;
    @Desensitization(type = SensitiveEnum.EMAIL)
    private String email;

    private String other;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", passWord='" + passWord + '\'' +
                ", phone='" + phone + '\'' +
                ", idNo='" + idNo + '\'' +
                ", accountNo='" + accountNo + '\'' +
                ", email='" + email + '\'' +
                ", other='" + other + '\'' +
                '}';
    }
}
